﻿<Window x:Class="SharedPropTest2.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Button x:Name="UiChangeValueBt" Content="Change Value" HorizontalAlignment="Left" Margin="217,259,0,0" VerticalAlignment="Top" Width="123" Click="UiChangeValueBt_Click" Height="37"/>
        <TextBlock HorizontalAlignment="Left" Margin="374,204,0,0" TextWrapping="Wrap" Text="Change This" VerticalAlignment="Top"/>
        <TextBox x:Name="UiInputValueTb" HorizontalAlignment="Left" Height="23" Margin="374,260,0,0" TextWrapping="Wrap" Text="1" VerticalAlignment="Top" Width="120"/>
        
        
       
        

        <StackPanel Name="UiTClass1" Margin="20,10,398,258">
            <TextBlock HorizontalAlignment="Left"  TextWrapping="Wrap" Text="Test Class1" VerticalAlignment="Top"/>
            <TextBlock HorizontalAlignment="Left"  TextWrapping="Wrap" Text="{Binding sum}" VerticalAlignment="Top"/>
        </StackPanel>

        <StackPanel Name="UiTClass2" Margin="393,10,10,258">
            <TextBlock HorizontalAlignment="Left"  TextWrapping="Wrap" Text="Test Class2" VerticalAlignment="Top"/>
            <TextBlock HorizontalAlignment="Left"  TextWrapping="Wrap" Text="{Binding sum}" VerticalAlignment="Top"/>
        </StackPanel>
        <TextBlock HorizontalAlignment="Left" Margin="238,156,0,0" TextWrapping="Wrap" Text="{Binding TestNumber, Source={StaticResource MainAppViewModel}}" VerticalAlignment="Top" Width="78"/>
        <Label Content="Value of AppViewModel.TestNumber" HorizontalAlignment="Left" Margin="184,125,0,0" VerticalAlignment="Top"/>

    </Grid>
</Window>
